/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sddengine;

import java.awt.Graphics;
import java.awt.image.BufferedImage;

/**
 *
 * @author Jøgge
 */
public class Sprite implements Collidable
{
    protected int x;
    protected int y;
    protected int height;
    protected int width;
    protected BufferedImage image;
    
    public Sprite() {
    	
    }
    
    public Sprite(BufferedImage image)
    {
        this.image = image;
        this.width = image.getWidth();
        this.height = image.getHeight();
    }
    
    public Sprite(BufferedImage image, int x, int y)
    {
        this.image = image;   
        this.x = x;
        this.y = y;
        this.width = image.getWidth();
        this.height = image.getHeight();
    }
    
    
    
    public void update() 
    {
        
    }
   
    public void draw(Graphics g) 
    {
    	g.drawImage(image, x, y, width, height, null);
    }
    
    public void setLocation(double x, double y)
    {
        
    }
    
    public double getX()
    {
        return x;
    }  
    
    public void setX(int x)
    {
        this.x = x;
    }
    
    public double getY()
    {
        return y;
    } 
    
    public void setY(int y)
    {
        this.y = y;
    }
    
    

    
    
}
